<!DOCTYPE HTML>
<html>
<head>
<title>红包奖励</title>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>  
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0," name="viewport">
<meta content="user-scalable=no" name="viewport">
<link href="http://__CSS__/my-style.css" rel="stylesheet" type="text/css">
<script src="http://__JS__/jquery.js"></script>
<style type="text/css">
*{
	margin:0;
	padding:0;
	list-style: none;
	border: 0;
}
@-webkit-keyframes shake {
	0% {
		-webkit-transform: rotate(2deg) translate3d(0,0,0)
	}

	50% {
		-webkit-transform: rotate(-2deg) translate3d(0,0,0)
	}

	100% {
		-webkit-transform: rotate(2deg) translate3d(0,0,0)
	}
}

@-moz-keyframes shake {
	0% {
		transform: rotate(2deg) translate3d(0,0,0)
	}

	50% {
		transform: rotate(-2deg) translate3d(0,0,0)
	}

	100% {
		transform: rotate(2deg) translate3d(0,0,0)
	}
}

@-ms-keyframes shake {
	0% {
		transform: rotate(2deg) translate3d(0,0,0)
	}

	50% {
		transform: rotate(-2deg) translate3d(0,0,0)
	}

	100% {
		transform: rotate(2deg) translate3d(0,0,0)
	}
}

.red{
	width: 800px;
	height: 1045px;
	border-radius: 15px;
	box-shadow: 1px 1px 20px #666;
	position: fixed;
	top:25%;
	left: 25%;
	overflow: hidden;
	margin-left: -150px;
	margin-top: -172px;
	transform-origin: 50% 100%;
	-webkit-transform-origin: 50% 100%;
}
.red img{
	width:100%;
	height: auto;
	position: absolute;
	z-index: 9;
}
.red.shake{
	animation:shake .2s infinite linear;
	-webkit-animation:shake .2s infinite linear;
}
.windows{
	width: 800px;
	height: 700px;
	background:url(http://__IMG__/asd24.png) no-repeat;
	background-size:cover;
	position: absolute;
	top: 25%;
	margin-top: -100px;
	left: 25%;
	margin-left: -150px;
	border-radius: 15px;
	display: none;
	z-index: 11;
}
.text{
	text-align: center;
	font-size: 100px;
	font-family: "微软雅黑";
	vertical-align:middle; 
	padding-top:100px;
	font-weight:700;
	color:white;
	
}
.close{
	width: 30px;
	height: 30px;
	position: absolute;
	right: -10px;
	top: -10px;
	background: #c7c7c7;
	border-radius: 50%;
	cursor: pointer;
	text-align: center;
	transition:all 0.5s linear;
	-webkit-transition:all 0.5s linear;
	-moz-transition:all 0.5s linear;
	-ms-transition:all 0.5s linear;
	-o-transition:all 0.5s linear;
}
.close:hover{
	transform:rotate(180deg);
	-webkit-transform:rotate(180deg);
	-moz-transform:rotate(180deg);
	-ms-transform:rotate(180deg);
	-o-transform:rotate(180deg);
}
.close img{
	padding-top: 5px;

}
.opacity{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom:0;
	background: #000;
	opacity:0.5;
	filter:alpha(opacity=50);
	z-index: 10;
	width: 100%;
	height: 100%;
	display: none;
}
.business_font{
		position: absolute; 
		z-index: 10; 
		left: 0; 
		right: 0; 
		text-align: center; 
		margin-top: 470px; 
		font-family: '微软雅黑'; 
		font-size: 70px; 
		color: white; 
		font-weight: bold; 	
	}
</style>
<script>
$(document).ready(function(){
	$(".red").click(function(){
		$(this).addClass("shake");
		setTimeout(function(){
			$(".red").removeClass("shake");
			$(".windows").fadeIn();
			$(".opacity").fadeIn();
		},2000);
	});
	//$(".close").click(function(){$(this).parent().fadeOut();$(".opacity").fadeOut()})
});
</script>


</head>
<body>
<div class="opacity"></div>
<div class="red">
 <img src="http://__IMG__/asd23.png">
  <p class="business_font">{$store_name}</p>
</div>
<div class="windows">
	<div class="text"><span>{$redpack}</span></div>
    <a href="__URL__PersonalCenterController/PersonalCenter"><div style="font-size:50px; text-align:center; font-family:'微软雅黑'; vertical-align:middle; padding-top:250px; text-decoration:none; color:black; font-style:normal; border:none;">点击进入钱包查看余额</div></a>
</div>
  <script type="text/javascript">
		history.pushState(null, null, location.href);
		window.addEventListener('popstate', function(event) {
		    history.pushState(null, null, location.href );
		    //此处加入回退时你要执行的代码
		    wx.closeWindow();
		}); 
 </script>
</body>
</html>